package com.hq.zb.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 数据字典行表
 * </p>
 *
 * @author huanghanrui
 * @since 2022-03-09
 */
@Data
@TableName("sys_code_line")
public class CodeLine extends BaseModel<CodeLine> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "line_id", type = IdType.AUTO)
    private Integer lineId;
    /**
     * 数据字典id
     */
    @TableField("code")
    private String code;
    /**
     * 值
     */
    private String value;
    /**
     * 含义
     */
    private String meaning;
    /**
     * 描述
     */
    private String description;
    /**
     * 排序
     */
    @TableField("sort_number")
    private Integer sortNumber;
    /**
     * 启用Y/N
     */
    @TableField("enable_flag")
    private Boolean enableFlag;

    @Override
    protected Serializable pkVal() {
        return this.lineId;
    }
}
